package main

import (
	"io/ioutil"
	"fmt"
	"os"
)

func main() {

	//读取文件
	bytes, _ :=  ioutil.ReadFile("E:\\test.txt")

	//根据条件创建临时文件
	ioutil.TempFile("E:\\", "txt")

	//往文件中写内容
	ioutil.WriteFile("E:\\txt068936887", bytes, os.ModeAppend)

	fmt.Printf("read file content is %v and length is %v", string(bytes), len(string(bytes)))




}